﻿<%@ Page Language="C#" AutoEventWireup="true" EnableEventValidation="false" CodeFile="Sms_Log.aspx.cs" Inherits="Sms_Log_cs" %>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>Sms_Log</title> 
</head>
<body >
    <form id="form1" runat="server">
  <ext:PageManager runat="server" />
   <ext:Panel ID="Panel1" Title="Sms_Log管理" runat="server" AutoHeight="true" BodyPadding="5px"
        ShowBorder="True" ShowHeader="false" EnableBackgroundColor="true">
        <Items>
            <ext:Form ID="Form5" ShowBorder="False" BodyPadding="5px" EnableBackgroundColor="true"
                ShowHeader="False" runat="server">
                <Rows>
                <ext:FormRow>
                        <Items>
                            <ext:TwinTriggerBox runat="server" EmptyText="输入要搜索的关键词" ShowLabel="false" ID="ttbSearch"
                                ShowTrigger1="false" OnTrigger1Click="ttbSearch_Trigger1Click" OnTrigger2Click="ttbSearch_Trigger2Click"
                                Trigger1Icon="Clear" Trigger2Icon="Search">
                            </ext:TwinTriggerBox>
                        </Items>
                    </ext:FormRow>
                </Rows>
            </ext:Form>
            <ext:Grid ID="Grid1" Title="Sms_Log列表" ShowBorder="true" ShowHeader="true" AutoHeight="true"
                runat="server" EnableCheckBoxSelect="true" DataKeyNames="Id" EnableRowNumber="True" EnableTextSelection="true" 
                AllowPaging="true" ForceFitAllTime="true" IsDatabasePaging="true" OnPageIndexChange="Grid1_PageIndexChange">
                <Toolbars>
                    <ext:Toolbar ID="Toolbar1" runat="server">
                        <Items>
                            <ext:Button ID="btnNew" Text="新增数据" Icon="Add" EnablePostBack="false" runat="server">
                            </ext:Button>
                            <ext:Button ID="btnDelete" Text="删除选中项" Icon="Delete" ConfirmText="此项操作不可逆，继续请点确定"
                                OnClick="btnDelete_Click" runat="server">
                            </ext:Button>
                            <ext:ToolbarFill ID="ToolbarFill1" runat="server">
                            </ext:ToolbarFill>
                            <ext:Button ID="btnExcel" Text="导出Excel" Icon="PageExcel" EnableAjax="false"  DisableControlBeforePostBack="False" OnClick="btnExcel_click"
                                runat="server">
                            </ext:Button>
                        </Items>
                    </ext:Toolbar>
                </Toolbars>
                <Columns>
		  <ext:BoundField   DataField="Id" DataFormatString="{0}"  ExpandUnusedSpace="True"  HeaderText="Id"/>
		  <ext:BoundField   DataField="Sendtime" DataFormatString="{0}"  ExpandUnusedSpace="True"  HeaderText="Sendtime"/>
		  <ext:BoundField   DataField="SenderID" DataFormatString="{0}"  ExpandUnusedSpace="True"  HeaderText="SenderID"/>
		  <ext:BoundField   DataField="Target" DataFormatString="{0}"  ExpandUnusedSpace="True"  HeaderText="Target"/>
		  <ext:BoundField   DataField="Scontent" DataFormatString="{0}"  ExpandUnusedSpace="True"  HeaderText="Scontent"/>
		  <ext:BoundField   DataField="State" DataFormatString="{0}"  ExpandUnusedSpace="True"  HeaderText="State"/>
		  <ext:BoundField   DataField="Statetime" DataFormatString="{0}"  ExpandUnusedSpace="True"  HeaderText="Statetime"/>
		  <ext:BoundField   DataField="Smsguid" DataFormatString="{0}"  ExpandUnusedSpace="True"  HeaderText="Smsguid"/>
		  <ext:BoundField   DataField="Taskstate" DataFormatString="{0}"  ExpandUnusedSpace="True"  HeaderText="Taskstate"/>
		  <ext:BoundField   DataField="Shenhe" DataFormatString="{0}"  ExpandUnusedSpace="True"  HeaderText="Shenhe"/>
		  <ext:BoundField   DataField="Sendcount" DataFormatString="{0}"  ExpandUnusedSpace="True"  HeaderText="Sendcount"/>
		  <ext:BoundField   DataField="Lockguid" DataFormatString="{0}"  ExpandUnusedSpace="True"  HeaderText="Lockguid"/>
                    
                    <ext:WindowField ColumnID="myWindowField" Width="60px" WindowID="Window1" HeaderText="编辑"
                        Icon="Pencil" ToolTip="编辑" DataTextFormatString="{0}" DataIFrameUrlFields="Id"
                        DataIFrameUrlFormatString="Sms_Logaction.aspx?id={0}" DataWindowTitleField="Id"
                        DataWindowTitleFormatString="编辑 - {0}" />
                </Columns>
            </ext:Grid>
        </Items>
    </ext:Panel>
    <ext:Window ID="Window1" Title="编辑" Hidden="true"  EnableIFrame="true" runat="server"
        CloseAction="HidePostBack" EnableConfirmOnClose="true" IFrameUrl="about:blank"
        EnableMaximize="true" EnableResize="true" OnClose="Window1_Close" Target="Top"
        IsModal="True" Width="750px" Height="450px">
    </ext:Window>
     
 </form>
</body>
</html>




 
